<?php
/*
 * Created by PhpStorm.
 * Date: 16/9/28
 * Time: 上午10:02
 * User: liubin
 */

namespace api\Model;

use Think\Model;

class CircleEntityModel extends Model
{
    function __construct() {
        $this->model = M('CircleEntity');
    }

    public function getCircle($order, $page = 1, $pergage = 10) {
        $data = $this->model->field('*')->page($page, $pergage)->order("".$order." asc")->select();
        $data = $data ? $data : array();
        return $data;
    }

}